package net.util;

import java.util.Map;

public class Comment {
	
	public String insertSQL(Map<String, Object> set){
		StringBuffer colums = new StringBuffer("(");
		StringBuffer values = new StringBuffer("(");
		for(String n : set.keySet()){
			colums.append(n).append(",");
			values.append(set.get(n)).append(",");
		}
		return "insert into " + colums.replace(colums.length()-1, colums.length(), ")") + " values " + 
				values.replace(values.length()-1, values.length(), ")");
	}

}
